import java.io.Serializable;

/**

 * provinces

 * @author 

 */

public class Provinces implements Serializable {

    //省份代码，它是主关键字/

    private String code;

    //省份名称

    private String name;

    private static final long serialVersionUID = 1L;



    public String getCode() {

        return code;

    }



    public void setCode(String code) {

        this.code = code;

    }



    public String getName() {

        return name;

    }



    public void setName(String name) {

        this.name = name;

    }



    @Override

    public String toString() {

        return this.code+","+this.name;

    }

}

11、地级实体类（Cities.java），用于存放地级信息。代码如下。

package qin.com.entity;

import java.io.Serializable;

/**

 * cities

 * @author 

 */

public class Cities implements Serializable {

    //地级的代码

    private String code;

    //地级名称

    private String name;

    // 省份代码

    private String provincesCode;

    private static final long serialVersionUID = 1L;



    public String getCode() {

        return code;

    }



    public void setCode(String code) {

        this.code = code;

    }



    public String getName() {

        return name;

    }



    public void setName(String name) {

        this.name = name;

    }



    public String getProvincesCode() {

        return provincesCode;

    }



    public void setProvincesCode(String provincesCode) {

        this.provincesCode = provincesCode;

    }

}

12、县级实体类（Areas.java），用于存放县级信息。代码如下。


package qin.com.entity;

import java.io.Serializable;

/**

 * areas

 * @author 

 */

public class Areas implements Serializable {

    // 县级代码

    private String code;

    // 县级名称

    private String name;

    // 地级代码

    private String citycode;

    // 省级代码

    private String provincecode;



    private static final long serialVersionUID = 1L;



    public String getCode() {

        return code;

    }



    public void setCode(String code) {

        this.code = code;

    }



    public String getName() {

        return name;

    }



    public void setName(String name) {

        this.name = name;

    }



    public String getCitycode() {

        return citycode;

    }



    public void setCitycode(String citycode) {

        this.citycode = citycode;

    }



    public String getProvincecode() {

        return provincecode;

    }



    public void setProvincecode(String provincecode) {

        this.provincecode = provincecode;

    }

}



13、乡级实体类（Streets.java），用于存入乡级信息。代码如下。

package qin.com.entity;

import java.io.Serializable;

/**

 * streets

 * @author 

 */

public class Streets implements Serializable {

    //乡级代码

    private String code;

    // 乡级名称

    private String name;

    // 县级代码

    private String areacode;

    // 地级代码

    private String citycode;

    //省级代码

    private String provincecode;



    private static final long serialVersionUID = 1L;



    public String getCode() {

        return code;

    }



    public void setCode(String code) {

        this.code = code;

    }



    public String getName() {

        return name;

    }



    public void setName(String name) {

        this.name = name;

    }



    public String getAreacode() {

        return areacode;

    }



    public void setAreacode(String areacode) {

        this.areacode = areacode;

    }



    public String getCitycode() {

        return citycode;

    }



    public void setCitycode(String citycode) {

        this.citycode = citycode;

    }



    public String getProvincecode() {

        return provincecode;

    }



    public void setProvincecode(String provincecode) {

        this.provincecode = provincecode;

    }

}

